package com.shumi.rbac.web;

import com.shumi.rbac.model.SzspccPageInfo;
import com.shumi.rbac.service.SzspccService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by Administrator on 2017/10/28.
 */
@Controller
@RequestMapping(value="/jeesite/a/platform/spsz")
public class SzspccController {
    @Autowired
    SzspccService szspccService;
    /**
     * 未查健康证初始化
     * @param all
     * @return
     */
    @ResponseBody
    @RequestMapping(value="wc_findAll")
    public Map findAll(SzspccPageInfo all){
        Map map = new HashMap();
        map.put("data",szspccService.queryAll(all));
        all.setTotal(szspccService.queryCount());
        map.put("page",all);
        return map;
    }


}
